﻿using System;
using System.Collections.Generic;

using System.Text;
using System.Data;
using DBManager.Admin;

namespace BO.Admin
{
    public class ProductsBO
    {
        //Download sản phẩm
        public static string AddDownloadProduct(string id, string LinkDownload, string ShortContent, string Status, string TypeProduct, string Title)
        {
            return ProductsDAL.AddDownloadProduct(id, LinkDownload, ShortContent, Status, TypeProduct, Title);
        }
        public static string EditDownloadProduct(string id, string LinkDownload, string ShortContent, string Status, string TypeProduct, string Title, string DownloadID)
        {
            return ProductsDAL.EditDownloadProduct(id, LinkDownload, ShortContent, Status, TypeProduct, Title, DownloadID);
        }
        public static DataTable GetInfomationDownloadPorductBO(string DownloadID)
        {
            return ProductsDAL.GetInfomationDownloadPorduct(DownloadID);
        }
        public static DataTable GetAllListDownloadBO(string id, string search)
        {
            return ProductsDAL.GetAllListDownload(id, search);
        }
        //
        public static DataTable getAllZoneCache()
        {
            return ProductsDAL.getAllZone();
        }
        public static DataTable getAllZoneByParentIdCache(string ParentId)
        {
            return ProductsDAL.getAllZoneByParentId(ParentId);
        }
        public static DataTable getInfomationZoneByIDCache(string ZoneId)
        {
            return ProductsDAL.getInfomationZoneByID(ZoneId);
        }
        public static string addZoneBO(string title, string url, string ParentId, string status)
        {
            return ProductsDAL.addZone(title, url, ParentId, status);
        }
        public static string editZoneBO(string title, string url, string ParentId, string status, string zoneid)
        {
            return ProductsDAL.editZone(title, url, ParentId, status, zoneid);
        }
        //san pham
        public static string addProductBO(string ZoneId, string ZoneIdOther, string Title, string Sapo, string Avatar, string Author, string IsFocus, string Url, string Tags, string status, string longContent, string price, string sale, string CompanyID, string TypeSale, string CheckQuantity, string EndDateNew, string Warranty, string FilterConditions, string Specifications)
        {
            return ProductsDAL.addProduct(ZoneId, ZoneIdOther, Title, Sapo, Avatar, Author, IsFocus, Url, Tags, status, longContent, price, sale, CompanyID, TypeSale, CheckQuantity, EndDateNew, Warranty, FilterConditions, Specifications);
        }
        public static DataTable getAllProductsBO(string sFind, string sZoneID)
        {
            return ProductsDAL.getAllProducts(sFind, sZoneID);
        }
        public static DataTable GetInfomationProductBO(string newsID)
        {
            return ProductsDAL.GetInfomationProduct(newsID);
        }
        public static string EditProductBO(string ID, string ZoneId, string ZoneIdOther, string Title, string Sapo, string Avatar, string Author, string IsFocus, string Url, string Tags, string status, string longContent, string price, string sale, string CompanyID, string TypeSale, string CheckQuantity, string EndDateNew, string Warranty, string FilterConditions, string Specifications)
        {
            return ProductsDAL.EditProduct(ID, ZoneId, ZoneIdOther, Title, Sapo, Avatar, Author, IsFocus, Url, Tags, status, longContent, price, sale, CompanyID, TypeSale, CheckQuantity, EndDateNew, Warranty, FilterConditions, Specifications);
        }
    }
}
